import Vue from 'vue'
import App from './App'

import uView from './uview-ui'
// #ifndef MP
import store from './store/index.js'
import openApp from './common/openApp.js'
// #endif


// #ifdef H5 || MP || APP-VUE
import request from './util/request/index.js'
import admin from './util/admin/index.js'
//import { myRequest } from './util/api/index.js'

Vue.prototype.request = request
Vue.prototype.admin = admin
//Vue.prototype.myRequest = myRequest
// #endif

Vue.config.productionTip = false

Vue.use(uView);
// #ifndef MP
openApp();
// #endif

App.mpType = 'app'

const app = new Vue({
    ...App,
	// #ifndef MP
	store
	// #endif
})
app.$mount()

// #ifdef VUE3
import {
	createSSRApp
} from 'vue'

export function createApp() {
	const app = createSSRApp(App)
	app.use(store)
	return {app}
}
// #endif

